/*
 * WorldObjectHelper.java
 *
 * Created on 17.06.2007, 01:51:14
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package de.tor.util.helpers;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Charon
 */
public class WorldObjectHelper extends ExtensibleHelper implements Serializable{
    
    private String name = null;
    private SpriteHelper viewSprite = null;
    private List<ExtensionHelper> enemyExtensions = null;
    
    public WorldObjectHelper() {
        enemyExtensions = new LinkedList();
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public SpriteHelper getViewSprite() {
        return viewSprite;
    }
    
    public void setViewSprite(SpriteHelper viewSprite) {
        this.viewSprite = viewSprite;
    }

    public List<ExtensionHelper> getEnemyExtensions() {
        return enemyExtensions;
    }
    
    public void setEnemyExtensions(List<ExtensionHelper> extensions) {
        this.enemyExtensions = extensions;
    }
 
    public void addEnemyExtension(ExtensionHelper extension){
        enemyExtensions.add(extension);
    }
    
    public void clearExtensions(){
        enemyExtensions.clear();
    }
}
